
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn'
import '@/assets/styles/index.scss' // global css
import store from './store'
import router from './router/index.js'
import "@/assets/styles/variables.module.scss"
// svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue'
import elementIcons from '@/components/SvgIcon/svgicon.js'
import './permission'
import Cookies from 'js-cookie' // permission control

import vue3videoPlay from "vue3-video-play"; // 引入组件
import "vue3-video-play/dist/style.css"; // 引入css

const app = createApp(App)

app.use(router)
app.use(ElementPlus)
app.use(router)
app.use(store)
app.use(elementIcons)
app.use(vue3videoPlay)
app.component('svg-icon', SvgIcon)
// 使用element-plus 并且设置全局的大小
app.use(ElementPlus, {
  locale: locale,
  // 支持 large、default、small
  size: Cookies.get('size') || 'default'
})

app.mount('#app')
